package com.grq.mis.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.beetl.sql.annotation.entity.AutoID;
import org.beetl.sql.annotation.entity.Table;

import java.io.Serializable;
/*
* 角色表
* gen by beetlsql3 2021-11-21
*/

@Data
@NoArgsConstructor
@AllArgsConstructor

@Table(name="t_role")
public class Role implements Serializable {
	@AutoID
	private Long id ;
	/**
	 * 角色名称
	 */
	private String name ;
	/**
	 * 角色描述
	 */
	private String description ;


	//////////////////////////////////////////////////////
	private String code;

	public String getCode() {
		return id + "_" + name;
	}

}
